from django.conf.urls.defaults import patterns, include, url

from django.conf import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'mlserver.views.home', name='home'),
    # url(r'^mlserver/', include('mlserver.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
  	url(r'^account/', include('account.urls')),
  	url(r'^conversation/', include('conversation.urls')),
    url(r'^people/', include('people.urls')),
	url(r'^question/', include('question.urls')),
	url(r'^hello/', include('hello.urls')),
	url(r'^relation/', include('relation.urls')),
	url(r'^report/', include('report.urls')),
	url(r'^vote/', include('vote.urls')),
	url(r'^star/', include('star.urls')),
	url(r'^$', 'question.views.list',name='home'),
)

if settings.DEBUG:
    urlpatterns += patterns('',
        (r'^static/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.MEDIA_ROOT})
    )
